package com.shopnight.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shopnight.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shopnight.result.ApiResult;
import com.shopnight.vo.MessageListVo;
import com.shopnight.vo.PostInfoVo;
import com.shopnight.vo.PostListVo;

import java.util.List;

/**
* @author 13201
* @description 针对表【post】的数据库操作Service
* @createDate 2023-05-30 15:38:55
*/
public interface PostService extends IService<Post> {

    Page<PostListVo> getPostList(Page page, Integer orgId, Integer categoryId);

    List<MessageListVo> getMessageList();

    PostInfoVo getPostInfo(Integer id);

    Integer addPost(Post post);

    Page<PostListVo> getPostListRecommend(Page page, Integer orgId, Integer categoryId);

    ApiResult delPost(Integer id);

    Page<PostListVo> getMyPost(Page page);

    Page<PostListVo> getTheyPost(Integer userId, Page page);
}
